/**
 * 
 */
package ocumed.persistenz.tests;

import junit.framework.TestCase;
import ocumed.persistenz.dao.DAOFactory;
import ocumed.persistenz.dao.TerminDAO;
import ocumed.persistenz.hibernate.OcTermin;

/**
 * @author rudi
 *
 */
public class TestTermin extends TestCase {
    
    /**
     * print them all
     */
    public void testAlleTermine() {
        TerminDAO tDAO = DAOFactory.get(DAOFactory.RDBMS).getTerminDAO();
        tDAO.start();
        
        System.out.println("alle termine...");
        for (OcTermin o : tDAO.findAll()) {
            System.out.println("===========");
            System.out.println(o.getTerminid() + ": " + o.getTerminzeitpunkt().getTime());
            System.out.println("===========");
        }
    }

}
